<h1>Article edit</h1>

<form action="{{ path('artykuly_update', { 'id': entity.id }) }}" method="post" {{ form_enctype(edit_form) }}>
    {#{ form_widget(edit_form) }#}
	 {{ form_errors(edit_form) }}
    
	<div>
		<div>{{ form_label(edit_form.title) }} </div>
		<div>{{ form_widget(edit_form.title) }}</div>
		<div>{{ form_errors(edit_form.title) }}</div>
	</div>
		
	<div>
		<div>{{ form_label(edit_form.body) }} </div>
		<div>{{ form_widget(edit_form.body) }}</div>
		<div>{{ form_errors(edit_form.body) }}</div>
	</div>
	
	<p>
		<button type="submit">Edit</button>
    </p>
	
	
	
	{{ form_widget(edit_form._token) }}
</form>

<ul class="record_actions">
    <li>
        <a href="{{ path('artykuly') }}">
            Back to the list
        </a>
    </li>
    <li>
        <form action="{{ path('artykuly_delete', { 'id': entity.id }) }}" method="post">
            {{ form_widget(delete_form) }}
            <button type="submit">Delete</button>
        </form>
    </li>
</ul>
